int
mult(int a, int b)
{
  int res = 0;
  while (b != 0) {
    if ((b & 1) != 0)
      res += a;
    a <<= 1;
    b >>= 1;
  }
  return res;
}
